import java.util.Scanner;

public class Short {
    public static void main(String[] args) {
        System.out.println("请输入一个整数：");
        Scanner sc=new Scanner(System.in);
        int num=sc.nextInt();
        if (num%7==0&num%3==0){
            System.out.println(num+"能被7整除也能被3整除");
        }else {
            System.out.println(num+"不能被7和3整除");
        }
    }
}
